package service.impl;


import dao.SpecialityDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import po.Speciality;
import service.SpecialityService;

import java.util.List;

@Service
@Transactional
public class SpecialityServiceImpl implements SpecialityService {
    @Autowired
    private SpecialityDao specialityDao;

    @Override
    public List<Speciality> allSpeciality() {
        return this.specialityDao.allSpeciality();
    }
}
